import api from "../../utils/api";
const diamond = {
  state: {
    diamondList: "",
  },
  mutations: {
    getdiamondList(state, paylode) {
      state.diamondList = paylode;
    },
  },
  actions: {
    async getdiamondAsync(context) {
      const res = await api.getdiamond();
      if (res.status == 0) {
        context.commit("getdiamondList", res.result);
      }
    },
  },
};
export default diamond;
